package com.practice.springboot_01_zwj.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CityRequest {

//    @NotNull(message = "城市ID不能为空")
    @JsonProperty("city_id")
    private Integer cityId;
    @JsonProperty("type")
    private String type;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getCityId() {
        return cityId;
    }
}
